<?php 


include './Core/function.php';

$data = include './data.php';

foreach ($data as $key => $value) {
	$result[] = $key;
}


if( $_GET && isset($_GET['id']) && in_array($_GET['id'], $result) ){
	$id = (int)$_GET['id'];
	$res[] = $data[$id]['username'];
	$res[] = $data[$id]['info'];
}else{
	error('index.php','非法操作');
}


include './Tpl/edit.html';




 ?>